package com.learn.learnsystem.handle;

import org.springframework.http.ResponseEntity;

//@RestControllerAdvice
public class SecurityExceptionHandler {

//    @ExceptionHandler(BadCredentialsException.class)
    public ResponseEntity<?> handleBadCredentials() {
        return ResponseEntity.status(401).body("无效的凭证");
    }
}